#例子
import time 

def timer(func):
    def wrapper(*args,**kwargs):
        start_time = time.time()
        res = func(*args,**kwargs)
        end_time = time.time()
        print(func.__name__,"time:",end_time-start_time)
        return res
    return wrapper


@timer
def add(a,b):
    return a+b

add(100,100)
